#!/bin/sh
HASTHI_HOME=`pwd`
for i in lib/*.jar
do
  CLASSPATH=$CLASSPATH:$i
done

CLASSPATH=$HASTHI_HOME/classes:$CLASSPATH

HASTHI_ADDON_HOME=$HASTHI_HOME/../../../management-addon/build/
if [ -e $HASTHI_ADDON_HOME ];then
	CLASSPATH=$CLASSPATH:$HASTHI_ADDON_HOME/lib/hyperic-sigar-1.5.0.1/sigar-bin/lib/sigar.jar
fi	

if [ ${#} -eq 2 ];then 
	$JAVA_HOME/bin/java -Xmx1024m -classpath  $CLASSPATH  -Dhasthi.logDir=$2 hasthi.tools.DummyServiceSet $1
else
	$JAVA_HOME/bin/java -Xmx1024m -classpath  $CLASSPATH hasthi.tools.DummyServiceSet $1
fi

zap hasthi

